package org.hxyjs.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.hxyjs.entity.Restaurant;
import org.hxyjs.entity.RestaurantExample;
import org.hxyjs.entity.User;

public interface RestaurantMapper {
    long countByExample(RestaurantExample example);

    int deleteByExample(RestaurantExample example);

    int deleteByPrimaryKey(String rno);

    int insert(Restaurant record);

    int insertSelective(Restaurant record);

    List<Restaurant> selectByExample(RestaurantExample example);

    Restaurant selectByPrimaryKey(String rno);

    List<Restaurant> getRestaurantByPage(Map<String, Object> map);

    List<Restaurant> getFreeRestaurantByDate(String beginDate,String endDate);

    String getMaxRno();

    Restaurant selectRestaurantWithorderAndUser(String rno);

    Restaurant getAccountByAccountName(String rname);

    int updateByExampleSelective(@Param("record") Restaurant record, @Param("example") RestaurantExample example);

    int updateByExample(@Param("record") Restaurant record, @Param("example") RestaurantExample example);

    int updateByPrimaryKeySelective(Restaurant record);

    int updateByPrimaryKey(Restaurant record);
}